<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<body>
    <h1>教务系统</h1>
    <h2>学生管理</h2>
    <a th:href="@{/students}">查询</a>
    <a th:href="@{/addstudentpage}">添加</a>
    <table border="1">
        <tr>
            <td>id</td>
            <td>姓名</td>
            <td>性别</td>
            <td>出生日期</td>
            <td>删除操作</td>
            <td>更新操作</td>
        </tr>
        <tr th:each="student:${students}">
            <td th:text="${student.id}"></td>
            <td th:text="${student.name}"></td>
            <td th:text="${student.gender}"></td>
            <td th:text="${student.birthday}"></td>
            <td>
                <a th:href="@{/deleteaccountstudent/{id}(id=${student.id})}">删除</a>
            </td>
            <td >
                <a th:href="@{/updatestudentpage/{id}(id=${student.id})}">更新</a>
            </td>
        </tr>
    </table>
</body>
</html>